package cn.org.IDao;

import java.util.List;

import cn.org.domain.Person;

public interface PersonMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Person record);

    int insertSelective(Person record);

    Person selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Person record);

    int updateByPrimaryKey(Person record);
    
   List<Person> getALLPerson();
    
    List<Person> getPersonsByOrg(int org_id);
    
    List<Person> getPersonsByPos(int pos_id);
    
    Person getPersonByName(String name);
}